<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: ShareApi 命名空间参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">ShareApi 命名空间参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a8d8eb33de0a336b6c099d4196e75fbc6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a8d8eb33de0a336b6c099d4196e75fbc6">OpenFile</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szFileName, unsigned <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> iMode)</td></tr>
<tr class="memdesc:a8d8eb33de0a336b6c099d4196e75fbc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开文件  <a href="namespace_share_api.html#a8d8eb33de0a336b6c099d4196e75fbc6">更多...</a><br /></td></tr>
<tr class="separator:a8d8eb33de0a336b6c099d4196e75fbc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29fcdef9c215ce0009e28dd52ba2c853"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a29fcdef9c215ce0009e28dd52ba2c853">CloseFile</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile)</td></tr>
<tr class="memdesc:a29fcdef9c215ce0009e28dd52ba2c853"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭一个文件句柄  <a href="namespace_share_api.html#a29fcdef9c215ce0009e28dd52ba2c853">更多...</a><br /></td></tr>
<tr class="separator:a29fcdef9c215ce0009e28dd52ba2c853"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52ea018b9be6f951d2bdce36cc0eae15"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a52ea018b9be6f951d2bdce36cc0eae15">SetFilePointerEx</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile, <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> dwOffset, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> iWhence)</td></tr>
<tr class="memdesc:a52ea018b9be6f951d2bdce36cc0eae15"><td class="mdescLeft">&#160;</td><td class="mdescRight">定位文件指针  <a href="namespace_share_api.html#a52ea018b9be6f951d2bdce36cc0eae15">更多...</a><br /></td></tr>
<tr class="separator:a52ea018b9be6f951d2bdce36cc0eae15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35bc338ea514bb9d9f3de57730db5d60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a35bc338ea514bb9d9f3de57730db5d60">SetFilePointer</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> dwOffset, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> iWhence)</td></tr>
<tr class="memdesc:a35bc338ea514bb9d9f3de57730db5d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">参考SetFilePointerEx的函数说明  <a href="namespace_share_api.html#a35bc338ea514bb9d9f3de57730db5d60">更多...</a><br /></td></tr>
<tr class="separator:a35bc338ea514bb9d9f3de57730db5d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12d3c7f822d56a7161601bfde8cd2791"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a12d3c7f822d56a7161601bfde8cd2791">GetFilePointerEx</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile)</td></tr>
<tr class="memdesc:a12d3c7f822d56a7161601bfde8cd2791"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回当前文件指针位置  <a href="namespace_share_api.html#a12d3c7f822d56a7161601bfde8cd2791">更多...</a><br /></td></tr>
<tr class="separator:a12d3c7f822d56a7161601bfde8cd2791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd17304851a877042934e8967d7ac27e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#acd17304851a877042934e8967d7ac27e">GetFilePointer</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile)</td></tr>
<tr class="memdesc:acd17304851a877042934e8967d7ac27e"><td class="mdescLeft">&#160;</td><td class="mdescRight">参考GetFilePointerEx的函数说明  <a href="namespace_share_api.html#acd17304851a877042934e8967d7ac27e">更多...</a><br /></td></tr>
<tr class="separator:acd17304851a877042934e8967d7ac27e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b481d0807997fab0917801a3203aad7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a4b481d0807997fab0917801a3203aad7">ReadFile</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile, void *buf, <a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> size)</td></tr>
<tr class="memdesc:a4b481d0807997fab0917801a3203aad7"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取文件数据  <a href="namespace_share_api.html#a4b481d0807997fab0917801a3203aad7">更多...</a><br /></td></tr>
<tr class="separator:a4b481d0807997fab0917801a3203aad7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1a8ec9389fc2b1cbf9b7a2a10a054bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ad1a8ec9389fc2b1cbf9b7a2a10a054bd">WriteFile</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile, const void *buf, <a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> size)</td></tr>
<tr class="memdesc:ad1a8ec9389fc2b1cbf9b7a2a10a054bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">向文件中写入数据  <a href="namespace_share_api.html#ad1a8ec9389fc2b1cbf9b7a2a10a054bd">更多...</a><br /></td></tr>
<tr class="separator:ad1a8ec9389fc2b1cbf9b7a2a10a054bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5853aba96a6eaed3b9dd1a66805f6070"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a5853aba96a6eaed3b9dd1a66805f6070">GetFileSizeEx</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile)</td></tr>
<tr class="memdesc:a5853aba96a6eaed3b9dd1a66805f6070"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件大小  <a href="namespace_share_api.html#a5853aba96a6eaed3b9dd1a66805f6070">更多...</a><br /></td></tr>
<tr class="separator:a5853aba96a6eaed3b9dd1a66805f6070"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8723a4c07d1482980a46b2f650bd2e5e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a8723a4c07d1482980a46b2f650bd2e5e">GetFileSize</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile)</td></tr>
<tr class="memdesc:a8723a4c07d1482980a46b2f650bd2e5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">参考GetFileSizeEx的说明  <a href="namespace_share_api.html#a8723a4c07d1482980a46b2f650bd2e5e">更多...</a><br /></td></tr>
<tr class="separator:a8723a4c07d1482980a46b2f650bd2e5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a714ae756abbd2497307c649f6e9259c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a714ae756abbd2497307c649f6e9259c2">FindFirstFile</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szDir, <a class="el" href="tools_8h.html#a67369fb17cf5023754a0db996c81a6af">PFILEFINDINFO</a> pInfo)</td></tr>
<tr class="memdesc:a714ae756abbd2497307c649f6e9259c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">文件遍历，win32中不用主动加上*.  <a href="namespace_share_api.html#a714ae756abbd2497307c649f6e9259c2">更多...</a><br /></td></tr>
<tr class="separator:a714ae756abbd2497307c649f6e9259c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4bb4bd0533fccd041039f9c51f1242d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ac4bb4bd0533fccd041039f9c51f1242d">FindNextFile</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile, <a class="el" href="tools_8h.html#a67369fb17cf5023754a0db996c81a6af">PFILEFINDINFO</a> pInfo)</td></tr>
<tr class="memdesc:ac4bb4bd0533fccd041039f9c51f1242d"><td class="mdescLeft">&#160;</td><td class="mdescRight">继续遍历目录  <a href="namespace_share_api.html#ac4bb4bd0533fccd041039f9c51f1242d">更多...</a><br /></td></tr>
<tr class="separator:ac4bb4bd0533fccd041039f9c51f1242d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a753dde889b11d29612c759d13ee359b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a753dde889b11d29612c759d13ee359b3">FindClose</a> (<a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> hFile)</td></tr>
<tr class="memdesc:a753dde889b11d29612c759d13ee359b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭目录遍历  <a href="namespace_share_api.html#a753dde889b11d29612c759d13ee359b3">更多...</a><br /></td></tr>
<tr class="separator:a753dde889b11d29612c759d13ee359b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae93328641ac50ed7196d704ff24b3dc2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ae93328641ac50ed7196d704ff24b3dc2">PathAppend</a> (<a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *srcdir, const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *subdir)</td></tr>
<tr class="memdesc:ae93328641ac50ed7196d704ff24b3dc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加目录的子目录名称  <a href="namespace_share_api.html#ae93328641ac50ed7196d704ff24b3dc2">更多...</a><br /></td></tr>
<tr class="separator:ae93328641ac50ed7196d704ff24b3dc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33259cc2e33070f75643c9836fa6befa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a33259cc2e33070f75643c9836fa6befa">IsDirent</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szDir)</td></tr>
<tr class="memdesc:a33259cc2e33070f75643c9836fa6befa"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查目录是否存在  <a href="namespace_share_api.html#a33259cc2e33070f75643c9836fa6befa">更多...</a><br /></td></tr>
<tr class="separator:a33259cc2e33070f75643c9836fa6befa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5477174100c9b0c5fa9b8a1787c09af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#af5477174100c9b0c5fa9b8a1787c09af">FilePathExists</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szFileName)</td></tr>
<tr class="memdesc:af5477174100c9b0c5fa9b8a1787c09af"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查文件是否存在  <a href="namespace_share_api.html#af5477174100c9b0c5fa9b8a1787c09af">更多...</a><br /></td></tr>
<tr class="separator:af5477174100c9b0c5fa9b8a1787c09af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e74675c3ae4e3233eeeb2088057aca8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a4e74675c3ae4e3233eeeb2088057aca8">GetCurrentDirectory</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> size, <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szPath)</td></tr>
<tr class="memdesc:a4e74675c3ae4e3233eeeb2088057aca8"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前进程目录  <a href="namespace_share_api.html#a4e74675c3ae4e3233eeeb2088057aca8">更多...</a><br /></td></tr>
<tr class="separator:a4e74675c3ae4e3233eeeb2088057aca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a12b9ef4412b9abb4848f65ffa2850e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a2a12b9ef4412b9abb4848f65ffa2850e">CreateDirectory</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szPathName)</td></tr>
<tr class="memdesc:a2a12b9ef4412b9abb4848f65ffa2850e"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建目录  <a href="namespace_share_api.html#a2a12b9ef4412b9abb4848f65ffa2850e">更多...</a><br /></td></tr>
<tr class="separator:a2a12b9ef4412b9abb4848f65ffa2850e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af058258537f5205e21395182fcc04208"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#af058258537f5205e21395182fcc04208">GetLastError</a> ()</td></tr>
<tr class="memdesc:af058258537f5205e21395182fcc04208"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回上一次函数的错误值  <a href="namespace_share_api.html#af058258537f5205e21395182fcc04208">更多...</a><br /></td></tr>
<tr class="separator:af058258537f5205e21395182fcc04208"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58553d013a36ffb0eb150b0eec157c63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a58553d013a36ffb0eb150b0eec157c63">Global_GetLastError</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> *pError=NULL)</td></tr>
<tr class="memdesc:a58553d013a36ffb0eb150b0eec157c63"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取错误信息  <a href="namespace_share_api.html#a58553d013a36ffb0eb150b0eec157c63">更多...</a><br /></td></tr>
<tr class="separator:a58553d013a36ffb0eb150b0eec157c63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79243d634ddf21dd7486ceb02e80e360"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a79243d634ddf21dd7486ceb02e80e360">Global_FreeMem</a> (<a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *sInfo)</td></tr>
<tr class="memdesc:a79243d634ddf21dd7486ceb02e80e360"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放由Global_GetLastErrr函数申请的内存  <a href="namespace_share_api.html#a79243d634ddf21dd7486ceb02e80e360">更多...</a><br /></td></tr>
<tr class="separator:a79243d634ddf21dd7486ceb02e80e360"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42cc4f5c3ce6a37fa32f97be13c5d300"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a42cc4f5c3ce6a37fa32f97be13c5d300">strnicmp</a> (const char *str1, const char *str2, size_t count)</td></tr>
<tr class="memdesc:a42cc4f5c3ce6a37fa32f97be13c5d300"><td class="mdescLeft">&#160;</td><td class="mdescRight">忽略大小写比较两个字符串,最多比较count个字符  <a href="namespace_share_api.html#a42cc4f5c3ce6a37fa32f97be13c5d300">更多...</a><br /></td></tr>
<tr class="separator:a42cc4f5c3ce6a37fa32f97be13c5d300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad16c6f67ce210b5dd91e57bbf743f0d7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">THREADPTR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ad16c6f67ce210b5dd91e57bbf743f0d7">BeginThread</a> (<a class="el" href="tools_8h.html#a8c4b94ef011acbcc6359107d2efb3d25">ThreadRoutine</a> pFunc, void *arg, <a class="el" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> stack_size=0, <a class="el" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a> *pThreadId=NULL)</td></tr>
<tr class="memdesc:ad16c6f67ce210b5dd91e57bbf743f0d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建线程  <a href="namespace_share_api.html#ad16c6f67ce210b5dd91e57bbf743f0d7">更多...</a><br /></td></tr>
<tr class="separator:ad16c6f67ce210b5dd91e57bbf743f0d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7a2d28aa9970323f90bf16ad0e039ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ac7a2d28aa9970323f90bf16ad0e039ac">Thread_Join</a> (<a class="el" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">THREADPTR</a> thHandle)</td></tr>
<tr class="memdesc:ac7a2d28aa9970323f90bf16ad0e039ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待线程结束  <a href="namespace_share_api.html#ac7a2d28aa9970323f90bf16ad0e039ac">更多...</a><br /></td></tr>
<tr class="separator:ac7a2d28aa9970323f90bf16ad0e039ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a89280226b06d9a20b2b37316742d60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a7a89280226b06d9a20b2b37316742d60">CloseThread</a> (<a class="el" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">THREADPTR</a> thHandle)</td></tr>
<tr class="memdesc:a7a89280226b06d9a20b2b37316742d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭线程对象句柄  <a href="namespace_share_api.html#a7a89280226b06d9a20b2b37316742d60">更多...</a><br /></td></tr>
<tr class="separator:a7a89280226b06d9a20b2b37316742d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa247d107f7e439e2c6871dfba195a022"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aa247d107f7e439e2c6871dfba195a022">GetCurrentThreadId</a> ()</td></tr>
<tr class="memdesc:aa247d107f7e439e2c6871dfba195a022"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前线程ID  <a href="namespace_share_api.html#aa247d107f7e439e2c6871dfba195a022">更多...</a><br /></td></tr>
<tr class="separator:aa247d107f7e439e2c6871dfba195a022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f2e8e67d4a3a8d061bd8f109762a48d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a5f2e8e67d4a3a8d061bd8f109762a48d">GetCurrentProcessId</a> ()</td></tr>
<tr class="memdesc:a5f2e8e67d4a3a8d061bd8f109762a48d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前进程的ID  <a href="namespace_share_api.html#a5f2e8e67d4a3a8d061bd8f109762a48d">更多...</a><br /></td></tr>
<tr class="separator:a5f2e8e67d4a3a8d061bd8f109762a48d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a169d4ee242a5f842c91da9be8a179e18"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a169d4ee242a5f842c91da9be8a179e18">Sleep</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwSleep)</td></tr>
<tr class="memdesc:a169d4ee242a5f842c91da9be8a179e18"><td class="mdescLeft">&#160;</td><td class="mdescRight">线程休眠函数,单位毫秒(ms)  <a href="namespace_share_api.html#a169d4ee242a5f842c91da9be8a179e18">更多...</a><br /></td></tr>
<tr class="separator:a169d4ee242a5f842c91da9be8a179e18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3a32d171616bf6ce986acb93ce88d30"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aa3a32d171616bf6ce986acb93ce88d30">QueryPerformanceFrequency</a> (<a class="el" href="tools_8h.html#a1638d44e4150a318c2791b2f719787aa">LARGE_INTEGER</a> *lpFrequency)</td></tr>
<tr class="memdesc:aa3a32d171616bf6ce986acb93ce88d30"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取cup时间频率函数(linux下该函数无效)  <a href="namespace_share_api.html#aa3a32d171616bf6ce986acb93ce88d30">更多...</a><br /></td></tr>
<tr class="separator:aa3a32d171616bf6ce986acb93ce88d30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52ea835c01d56aaf225ab37baacf7dd6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a52ea835c01d56aaf225ab37baacf7dd6">QueryPerformanceCounter</a> (<a class="el" href="tools_8h.html#a1638d44e4150a318c2791b2f719787aa">LARGE_INTEGER</a> *lpPerformanceCount)</td></tr>
<tr class="memdesc:a52ea835c01d56aaf225ab37baacf7dd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取CPU的执行时间  <a href="namespace_share_api.html#a52ea835c01d56aaf225ab37baacf7dd6">更多...</a><br /></td></tr>
<tr class="separator:a52ea835c01d56aaf225ab37baacf7dd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fd951b223aa9382df1d9820bb04072e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a6fd951b223aa9382df1d9820bb04072e">PrintDumpInfo</a> (bool bPrintConsole=false)</td></tr>
<tr class="memdesc:a6fd951b223aa9382df1d9820bb04072e"><td class="mdescLeft">&#160;</td><td class="mdescRight">打印异常后函数调用堆栈信息  <a href="namespace_share_api.html#a6fd951b223aa9382df1d9820bb04072e">更多...</a><br /></td></tr>
<tr class="separator:a6fd951b223aa9382df1d9820bb04072e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc7a41f951383d91baa664bae54c03a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#afc7a41f951383d91baa664bae54c03a3">StartProcess</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *exename, <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> **argv=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>, <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> **evp=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:afc7a41f951383d91baa664bae54c03a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">开始一个新进程  <a href="namespace_share_api.html#afc7a41f951383d91baa664bae54c03a3">更多...</a><br /></td></tr>
<tr class="separator:afc7a41f951383d91baa664bae54c03a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b416e5e159ac50d2c18a1f77a0ea734"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">HANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a4b416e5e159ac50d2c18a1f77a0ea734">LoadDll</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *dllName)</td></tr>
<tr class="memdesc:a4b416e5e159ac50d2c18a1f77a0ea734"><td class="mdescLeft">&#160;</td><td class="mdescRight">动态载入dll/so库函数  <a href="namespace_share_api.html#a4b416e5e159ac50d2c18a1f77a0ea734">更多...</a><br /></td></tr>
<tr class="separator:a4b416e5e159ac50d2c18a1f77a0ea734"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65d31568eb4e185474be493a8a9ec749"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a65d31568eb4e185474be493a8a9ec749">LoadSymbol</a> (<a class="el" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">HANDLE</a> dlHandle, const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *symbol)</td></tr>
<tr class="memdesc:a65d31568eb4e185474be493a8a9ec749"><td class="mdescLeft">&#160;</td><td class="mdescRight">载入动态库中的导出符号  <a href="namespace_share_api.html#a65d31568eb4e185474be493a8a9ec749">更多...</a><br /></td></tr>
<tr class="separator:a65d31568eb4e185474be493a8a9ec749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac677a9c487af4ea8e2a3c14c4a5593e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ac677a9c487af4ea8e2a3c14c4a5593e6">CloseDll</a> (<a class="el" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">HANDLE</a> dlHandle)</td></tr>
<tr class="memdesc:ac677a9c487af4ea8e2a3c14c4a5593e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭打开的动态库句柄  <a href="namespace_share_api.html#ac677a9c487af4ea8e2a3c14c4a5593e6">更多...</a><br /></td></tr>
<tr class="separator:ac677a9c487af4ea8e2a3c14c4a5593e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数（GBK=&gt;UNICODE）</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>目标字符串的大小（以字符为单位） </td></tr>
    <tr><td class="paramname">des</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">src</td><td>源字符串 </td></tr>
    <tr><td class="paramname">srcLen</td><td>源字符串长度，若为0则取strlen的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>r1:成功返回TRUE失败返回FALSE; r2:返回写入des的大小（以字符为单位，但不包括\0结束符），若失败则返回-1 </dd></dl>
</div></td></tr>
<tr class="memitem:a62f4cba03d9da2cb150f2a6ccda04061"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a62f4cba03d9da2cb150f2a6ccda04061">AS_CPY_WS</a> (size_t size, <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *des, const char *src)</td></tr>
<tr class="separator:a62f4cba03d9da2cb150f2a6ccda04061"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafc83846014294f90fd16a5649dfd550"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aafc83846014294f90fd16a5649dfd550">GbkToUnicode</a> (<a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *des, size_t size, const char *src, size_t srcLen=0)</td></tr>
<tr class="separator:aafc83846014294f90fd16a5649dfd550"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数(UNICODE=&gt;GBK)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>目标字符串的大小(以字符为单位) </td></tr>
    <tr><td class="paramname">des</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">src</td><td>源字符串 </td></tr>
    <tr><td class="paramname">srcLen</td><td>源字符串长度,若为0则取wcslen的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>r1:成功返回TRUE失败返回FALSE; r2:成功返回写入des的大小（以字符为单位，但不包括\0结束符），失败返回-1 </dd></dl>
</div></td></tr>
<tr class="memitem:a35355024be699fab00fff43941b41914"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a35355024be699fab00fff43941b41914">WS_CPY_AS</a> (size_t size, char *des, const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *src)</td></tr>
<tr class="separator:a35355024be699fab00fff43941b41914"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1feb20a6d3425c35c0022f486d106759"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a1feb20a6d3425c35c0022f486d106759">UnicodeToGbk</a> (char *des, size_t size, const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *src, size_t srcLen=0)</td></tr>
<tr class="separator:a1feb20a6d3425c35c0022f486d106759"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数(GBK=&gt;UTF8)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>目标字符串的大小(以字符为单位) </td></tr>
    <tr><td class="paramname">des</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">src</td><td>源字符串 </td></tr>
    <tr><td class="paramname">srcLen</td><td>源字符串长度，若为0则取strlen(src)的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>r1:成功返回TRUE失败返回FALSE; r2:成功返回写入des的大小（以字符为单位，但不包括\0结束符），失败返回-1 </dd></dl>
</div></td></tr>
<tr class="memitem:aa728fde57f4dbb2293a3c924cf0a379d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aa728fde57f4dbb2293a3c924cf0a379d">AS_CPY_UTF8</a> (size_t size, char *des, const char *src)</td></tr>
<tr class="separator:aa728fde57f4dbb2293a3c924cf0a379d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d058caff66f8dd3726492a2ef6fc15f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a9d058caff66f8dd3726492a2ef6fc15f">GbkToUtf8</a> (char *des, size_t size, const char *src, size_t srcLen=0)</td></tr>
<tr class="separator:a9d058caff66f8dd3726492a2ef6fc15f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数(UNICODE=&gt;UTF8)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>目标字符串的大小（以字符为单位） </td></tr>
    <tr><td class="paramname">des</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">src</td><td>源字符串 </td></tr>
    <tr><td class="paramname">srcLen</td><td>源字符串长度，若为0则取wcslen(src)的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>r1:成功返回TRUE失败返回FALSE; r2:成功返回写入des的大小（以字符为单位，但不包括\0结束符），失败返回-1 </dd></dl>
</div></td></tr>
<tr class="memitem:a431b116518daffebc87c866b65aacfa2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a431b116518daffebc87c866b65aacfa2">WS_CPY_UTF8</a> (size_t size, char *des, const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *src)</td></tr>
<tr class="separator:a431b116518daffebc87c866b65aacfa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6dfe98d6e51d6c8a3a612de99f840b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ae6dfe98d6e51d6c8a3a612de99f840b2">UnicodeToUtf8</a> (char *des, size_t size, const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *src, size_t srcLen=0)</td></tr>
<tr class="separator:ae6dfe98d6e51d6c8a3a612de99f840b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数(UTF8=&gt;UNICODE)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>目标字符串的大小（以字符为单位） </td></tr>
    <tr><td class="paramname">des</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">src</td><td>源字符串 </td></tr>
    <tr><td class="paramname">srcLen</td><td>源字符串长度，若为0则取strlen(src)的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>r1:成功返回TRUE失败返回FALSE; r2:成功返回写入des的大小（以字符为单位，但不包括\0结束符），失败返回-1 </dd></dl>
</div></td></tr>
<tr class="memitem:aaf65e2886782dff810bc58f68d3ceab4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aaf65e2886782dff810bc58f68d3ceab4">UTF8_CPY_WS</a> (size_t size, <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *des, const char *src)</td></tr>
<tr class="separator:aaf65e2886782dff810bc58f68d3ceab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ed844c1fb6e16ef713828402c8200a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a1ed844c1fb6e16ef713828402c8200a2">Utf8ToUnicode</a> (<a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *des, size_t size, const char *src, size_t srcLen=0)</td></tr>
<tr class="separator:a1ed844c1fb6e16ef713828402c8200a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数(UTF8=&gt;GBK)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>目标字符串的字节大小 </td></tr>
    <tr><td class="paramname">des</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">src</td><td>源字符串 </td></tr>
    <tr><td class="paramname">srcLen</td><td>源字符串的长度，若为0则取strlen(src)的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>r1:成功返回TRUE失败返回FALSE; r2:成功返回写入des的字节大小，失败返回-1 </dd></dl>
</div></td></tr>
<tr class="memitem:a4d8aa14a00b0d34d476dece859c6203b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a4d8aa14a00b0d34d476dece859c6203b">UTF8_CPY_AS</a> (size_t size, char *des, const char *src)</td></tr>
<tr class="separator:a4d8aa14a00b0d34d476dece859c6203b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adda5f5c83e04637a92905f9f4164f075"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#adda5f5c83e04637a92905f9f4164f075">Utf8ToGbk</a> (char *des, size_t size, const char *src, size_t srcLen=0)</td></tr>
<tr class="separator:adda5f5c83e04637a92905f9f4164f075"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">整型与字符串转换</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>长整型转换成字符串</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>被转换的(无符号)长整型值/浮点值 </td></tr>
    <tr><td class="paramname">szValue</td><td>转换后的字符串 </td></tr>
    <tr><td class="paramname">size</td><td>szValue的内存大小 </td></tr>
    <tr><td class="paramname">dotcount</td><td>保留的小数位数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回实际格式化后的字符串大小 </dd></dl>
</div></td></tr>
<tr class="memitem:a042cb4f7a8ef64c76911a3c95caf3bb1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a042cb4f7a8ef64c76911a3c95caf3bb1">lltoa</a> (<a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> value, char *szValue, size_t size)</td></tr>
<tr class="separator:a042cb4f7a8ef64c76911a3c95caf3bb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab284a7efaf7111e839b66df283157fea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ab284a7efaf7111e839b66df283157fea">ultoa</a> (<a class="el" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a> value, char *szValue, size_t size)</td></tr>
<tr class="separator:ab284a7efaf7111e839b66df283157fea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95bbd5d2f49d29511d8a53e60339ff08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a95bbd5d2f49d29511d8a53e60339ff08">ltoa</a> (<a class="el" href="tools_8h.html#acbf03b87f07f587a6e72384c9141182a">long_t</a> value, char *szValue, size_t size)</td></tr>
<tr class="separator:a95bbd5d2f49d29511d8a53e60339ff08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe403ffbb6f46bfd43aa404c5b462e7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#afe403ffbb6f46bfd43aa404c5b462e7f">itoa</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> value, char *szValue, size_t size)</td></tr>
<tr class="separator:afe403ffbb6f46bfd43aa404c5b462e7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac170c14f06c9eaa6710df7726e475908"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ac170c14f06c9eaa6710df7726e475908">ftoa</a> (float value, char *szValue, size_t size, size_t dotcount=6)</td></tr>
<tr class="separator:ac170c14f06c9eaa6710df7726e475908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceaa3079fafcc01a4e994851d7b19b18"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aceaa3079fafcc01a4e994851d7b19b18">lftoa</a> (double value, char *szValue, size_t size, size_t dotcount=6)</td></tr>
<tr class="separator:aceaa3079fafcc01a4e994851d7b19b18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad0f12d8a89ce1a3ac07b25be7d4dca8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aad0f12d8a89ce1a3ac07b25be7d4dca8">llftoa</a> (long double value, char *szValue, size_t size, size_t dotcount=6)</td></tr>
<tr class="separator:aad0f12d8a89ce1a3ac07b25be7d4dca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">锁类函数</div></td></tr>
<tr class="memitem:a1a12fe17284d65b76175e2ea80279f9e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a1a12fe17284d65b76175e2ea80279f9e">CreateMutex</a> ()</td></tr>
<tr class="memdesc:a1a12fe17284d65b76175e2ea80279f9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建锁  <a href="namespace_share_api.html#a1a12fe17284d65b76175e2ea80279f9e">更多...</a><br /></td></tr>
<tr class="separator:a1a12fe17284d65b76175e2ea80279f9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87b8d6d01e677432b988eef8ce62c3fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a87b8d6d01e677432b988eef8ce62c3fb">MutexLock</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hMutex)</td></tr>
<tr class="memdesc:a87b8d6d01e677432b988eef8ce62c3fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">加锁  <a href="namespace_share_api.html#a87b8d6d01e677432b988eef8ce62c3fb">更多...</a><br /></td></tr>
<tr class="separator:a87b8d6d01e677432b988eef8ce62c3fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5ba1f54275e01ae695344690c8e5f40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ae5ba1f54275e01ae695344690c8e5f40">MutexUnlock</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hMutex)</td></tr>
<tr class="memdesc:ae5ba1f54275e01ae695344690c8e5f40"><td class="mdescLeft">&#160;</td><td class="mdescRight">解锁  <a href="namespace_share_api.html#ae5ba1f54275e01ae695344690c8e5f40">更多...</a><br /></td></tr>
<tr class="separator:ae5ba1f54275e01ae695344690c8e5f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f77f0ed93c1add64d17085612759c2e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a8f77f0ed93c1add64d17085612759c2e">CloseMutex</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hMutex)</td></tr>
<tr class="memdesc:a8f77f0ed93c1add64d17085612759c2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁锁  <a href="namespace_share_api.html#a8f77f0ed93c1add64d17085612759c2e">更多...</a><br /></td></tr>
<tr class="separator:a8f77f0ed93c1add64d17085612759c2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">线程同步函数</div></td></tr>
<tr class="memitem:a7b6335c0eefe4ed1f01963638bc708b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a7b6335c0eefe4ed1f01963638bc708b8">CreateEvent</a> (<a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> bEvent=<a class="el" href="tools_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> bAuto=<a class="el" href="tools_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>)</td></tr>
<tr class="memdesc:a7b6335c0eefe4ed1f01963638bc708b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建事件  <a href="namespace_share_api.html#a7b6335c0eefe4ed1f01963638bc708b8">更多...</a><br /></td></tr>
<tr class="separator:a7b6335c0eefe4ed1f01963638bc708b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef9c08d248e17a517235723ef2db9663"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aef9c08d248e17a517235723ef2db9663">SetEvent</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hEvent, <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> bEvent)</td></tr>
<tr class="memdesc:aef9c08d248e17a517235723ef2db9663"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置句柄是否有事件  <a href="namespace_share_api.html#aef9c08d248e17a517235723ef2db9663">更多...</a><br /></td></tr>
<tr class="separator:aef9c08d248e17a517235723ef2db9663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13ed8016535f6825c83eedef069ebe41"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a13ed8016535f6825c83eedef069ebe41">WaitForSingleEvent</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hEvent, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwWaitOut)</td></tr>
<tr class="memdesc:a13ed8016535f6825c83eedef069ebe41"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待事件对象有信号  <a href="namespace_share_api.html#a13ed8016535f6825c83eedef069ebe41">更多...</a><br /></td></tr>
<tr class="separator:a13ed8016535f6825c83eedef069ebe41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13aef8d6aaac3071ccedf693c7d03f27"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a13aef8d6aaac3071ccedf693c7d03f27">WaitForMultipleEvents</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> *hEvents, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> nEventCount, <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> bWaitAll, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwWaitOut)</td></tr>
<tr class="memdesc:a13aef8d6aaac3071ccedf693c7d03f27"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待多个事件对象有信号  <a href="namespace_share_api.html#a13aef8d6aaac3071ccedf693c7d03f27">更多...</a><br /></td></tr>
<tr class="separator:a13aef8d6aaac3071ccedf693c7d03f27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ee205cb7095e6d00b9631fa1857a6c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a7ee205cb7095e6d00b9631fa1857a6c3">CloseEvent</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hEvent)</td></tr>
<tr class="memdesc:a7ee205cb7095e6d00b9631fa1857a6c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁事件句柄  <a href="namespace_share_api.html#a7ee205cb7095e6d00b9631fa1857a6c3">更多...</a><br /></td></tr>
<tr class="separator:a7ee205cb7095e6d00b9631fa1857a6c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a96c0bb1d6b9ad1fdb25a055e7ed85c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a6a96c0bb1d6b9ad1fdb25a055e7ed85c">CreateCondVariable</a> ()</td></tr>
<tr class="memdesc:a6a96c0bb1d6b9ad1fdb25a055e7ed85c"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建条件变量  <a href="namespace_share_api.html#a6a96c0bb1d6b9ad1fdb25a055e7ed85c">更多...</a><br /></td></tr>
<tr class="separator:a6a96c0bb1d6b9ad1fdb25a055e7ed85c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33be1b774a30a60e8f134e9a54e754f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a33be1b774a30a60e8f134e9a54e754f0">NotifyCondVariable</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hCond)</td></tr>
<tr class="memdesc:a33be1b774a30a60e8f134e9a54e754f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">唤醒单个线程上的等待的条件变量  <a href="namespace_share_api.html#a33be1b774a30a60e8f134e9a54e754f0">更多...</a><br /></td></tr>
<tr class="separator:a33be1b774a30a60e8f134e9a54e754f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae618bc7d8ba275d84cb5b7b984d41613"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ae618bc7d8ba275d84cb5b7b984d41613">NotifyAllCondVariable</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hCond)</td></tr>
<tr class="memdesc:ae618bc7d8ba275d84cb5b7b984d41613"><td class="mdescLeft">&#160;</td><td class="mdescRight">唤醒所有线程上的等待的条件变量  <a href="namespace_share_api.html#ae618bc7d8ba275d84cb5b7b984d41613">更多...</a><br /></td></tr>
<tr class="separator:ae618bc7d8ba275d84cb5b7b984d41613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab91c15d44323d61c48b1afd434da6a33"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#ab91c15d44323d61c48b1afd434da6a33">WaitConditionVariable</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hCond, <a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hMutex, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwWaitOut)</td></tr>
<tr class="memdesc:ab91c15d44323d61c48b1afd434da6a33"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待条件变量  <a href="namespace_share_api.html#ab91c15d44323d61c48b1afd434da6a33">更多...</a><br /></td></tr>
<tr class="separator:ab91c15d44323d61c48b1afd434da6a33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34a96620589e6276f6a506d0180af6d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a34a96620589e6276f6a506d0180af6d8">CloseConditionVariable</a> (<a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> hCond)</td></tr>
<tr class="memdesc:a34a96620589e6276f6a506d0180af6d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁信号量资源  <a href="namespace_share_api.html#a34a96620589e6276f6a506d0180af6d8">更多...</a><br /></td></tr>
<tr class="separator:a34a96620589e6276f6a506d0180af6d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">原子操作,加1操作</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addend</td><td>数据指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回加1操作之前的值 </dd></dl>
</div></td></tr>
<tr class="memitem:a3d320458a805a39a1abc145d7aa28fb6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a3d320458a805a39a1abc145d7aa28fb6">InterlockedIncrement64</a> (<a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *Addend)</td></tr>
<tr class="separator:a3d320458a805a39a1abc145d7aa28fb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae939585936b972d0fba0a064278f6dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aae939585936b972d0fba0a064278f6dd">InterlockedIncrement</a> (long *Addend)</td></tr>
<tr class="separator:aae939585936b972d0fba0a064278f6dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3481ddc224ec35e1779ad5462cf8f29a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a3481ddc224ec35e1779ad5462cf8f29a">InterlockedIncrement</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *Addend)</td></tr>
<tr class="separator:a3481ddc224ec35e1779ad5462cf8f29a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">原子操作,减1操作</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addend</td><td>数据指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回减1操作之前的值 </dd></dl>
</div></td></tr>
<tr class="memitem:a647b7c405fa0d8d21c4d1da509fc58ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a647b7c405fa0d8d21c4d1da509fc58ec">InterlockedDecrement64</a> (<a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *Addend)</td></tr>
<tr class="separator:a647b7c405fa0d8d21c4d1da509fc58ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cf67c0b1b748d5d51ec8dbd0f7aaae4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a1cf67c0b1b748d5d51ec8dbd0f7aaae4">InterlockedDecrement</a> (long *Addend)</td></tr>
<tr class="separator:a1cf67c0b1b748d5d51ec8dbd0f7aaae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4535893b4a84f7446af7f907e843f504"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a4535893b4a84f7446af7f907e843f504">InterlockedDecrement</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *Addend)</td></tr>
<tr class="separator:a4535893b4a84f7446af7f907e843f504"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">原子操作,加法操作</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addend</td><td>数据指针 </td></tr>
    <tr><td class="paramname">Value</td><td>被加的值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回增加操作之前的值 </dd></dl>
</div></td></tr>
<tr class="memitem:a83771e6812aba75449e79e18b9220041"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a83771e6812aba75449e79e18b9220041">InterlockedExchangeAdd</a> (long *Addend, long Value)</td></tr>
<tr class="separator:a83771e6812aba75449e79e18b9220041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa333977e77d5aa53d011ffd2531f8fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#afa333977e77d5aa53d011ffd2531f8fc">InterlockedExchangeAdd</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *Addend, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> Value)</td></tr>
<tr class="separator:afa333977e77d5aa53d011ffd2531f8fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a510d88717f432bba3b53a87989044492"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a510d88717f432bba3b53a87989044492">InterlockedExchangeAdd64</a> (<a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *Addend, <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> Value)</td></tr>
<tr class="separator:a510d88717f432bba3b53a87989044492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">原子操作,赋值操作</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addend</td><td>数据指针 </td></tr>
    <tr><td class="paramname">Value</td><td>交换的值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回交换操作之前的值 </dd></dl>
</div></td></tr>
<tr class="memitem:a949e52140a840041bc8d2353327f576a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a949e52140a840041bc8d2353327f576a">InterlockedExchange64</a> (<a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *Addend, <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> value)</td></tr>
<tr class="separator:a949e52140a840041bc8d2353327f576a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa020decf062bbd8dc399dd69c67a1d5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#aa020decf062bbd8dc399dd69c67a1d5b">InterlockedExchange</a> (long *Addend, long value)</td></tr>
<tr class="separator:aa020decf062bbd8dc399dd69c67a1d5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74971aa7355ca77722a8e6ca66ae3841"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a74971aa7355ca77722a8e6ca66ae3841">InterlockedExchange</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *Addend, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> value)</td></tr>
<tr class="separator:a74971aa7355ca77722a8e6ca66ae3841"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">获取从系统启动锁经过的时间(单位毫秒)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section return"><dt>返回</dt><dd>返回机器的运行时间 </dd></dl>
</div></td></tr>
<tr class="memitem:a0a37d9b5c4fe9f8f5611369885097b67"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a0a37d9b5c4fe9f8f5611369885097b67">GetTickCount</a> ()</td></tr>
<tr class="separator:a0a37d9b5c4fe9f8f5611369885097b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a608cadd04e1c250b35997658e0390cc7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="tools_8h.html#adbfeae90dcbc6d1e23fc52bb64339f46">DWORD64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_share_api.html#a608cadd04e1c250b35997658e0390cc7">GetTickCount64</a> ()</td></tr>
<tr class="separator:a608cadd04e1c250b35997658e0390cc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="aa728fde57f4dbb2293a3c924cf0a379d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa728fde57f4dbb2293a3c924cf0a379d">&#9670;&nbsp;</a></span>AS_CPY_UTF8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::AS_CPY_UTF8 </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00551">551</a> 行定义.</p>

</div>
</div>
<a id="a62f4cba03d9da2cb150f2a6ccda04061"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62f4cba03d9da2cb150f2a6ccda04061">&#9670;&nbsp;</a></span>AS_CPY_WS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::AS_CPY_WS </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00633">633</a> 行定义.</p>

</div>
</div>
<a id="ad16c6f67ce210b5dd91e57bbf743f0d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad16c6f67ce210b5dd91e57bbf743f0d7">&#9670;&nbsp;</a></span>BeginThread()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">THREADPTR</a> ShareApi::BeginThread </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a8c4b94ef011acbcc6359107d2efb3d25">ThreadRoutine</a>&#160;</td>
          <td class="paramname"><em>pFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>&#160;</td>
          <td class="paramname"><em>stack_size</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a> *&#160;</td>
          <td class="paramname"><em>pThreadId</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建线程 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stack_size</td><td>函数的栈大小，0则为默认(默认THREAD_STACK_MIN的大小,这也是线程最小的堆栈大小) </td></tr>
    <tr><td class="paramname">pFunc</td><td>回调函数 </td></tr>
    <tr><td class="paramname">arg</td><td>回调函数中的参数 </td></tr>
    <tr><td class="paramname">pThreadId</td><td>线程返回的ID值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>失败返回0值，成功返回一个线程句柄 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01128">1128</a> 行定义.</p>

</div>
</div>
<a id="a34a96620589e6276f6a506d0180af6d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34a96620589e6276f6a506d0180af6d8">&#9670;&nbsp;</a></span>CloseConditionVariable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::CloseConditionVariable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hCond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>销毁信号量资源 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hCond</td><td>条件变量句柄 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01684">1684</a> 行定义.</p>

</div>
</div>
<a id="ac677a9c487af4ea8e2a3c14c4a5593e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac677a9c487af4ea8e2a3c14c4a5593e6">&#9670;&nbsp;</a></span>CloseDll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::CloseDll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">HANDLE</a>&#160;</td>
          <td class="paramname"><em>dlHandle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭打开的动态库句柄 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l02178">2178</a> 行定义.</p>

</div>
</div>
<a id="a7ee205cb7095e6d00b9631fa1857a6c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ee205cb7095e6d00b9631fa1857a6c3">&#9670;&nbsp;</a></span>CloseEvent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::CloseEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hEvent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>销毁事件句柄 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01558">1558</a> 行定义.</p>

</div>
</div>
<a id="a29fcdef9c215ce0009e28dd52ba2c853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29fcdef9c215ce0009e28dd52ba2c853">&#9670;&nbsp;</a></span>CloseFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::CloseFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭一个文件句柄 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00227">227</a> 行定义.</p>

</div>
</div>
<a id="a8f77f0ed93c1add64d17085612759c2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f77f0ed93c1add64d17085612759c2e">&#9670;&nbsp;</a></span>CloseMutex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::CloseMutex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hMutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>销毁锁 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01247">1247</a> 行定义.</p>

</div>
</div>
<a id="a7a89280226b06d9a20b2b37316742d60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a89280226b06d9a20b2b37316742d60">&#9670;&nbsp;</a></span>CloseThread()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::CloseThread </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">THREADPTR</a>&#160;</td>
          <td class="paramname"><em>thHandle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭线程对象句柄 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01181">1181</a> 行定义.</p>

</div>
</div>
<a id="a6a96c0bb1d6b9ad1fdb25a055e7ed85c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a96c0bb1d6b9ad1fdb25a055e7ed85c">&#9670;&nbsp;</a></span>CreateCondVariable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> ShareApi::CreateCondVariable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建条件变量 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回一个信号句柄，失败返回NULL </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01570">1570</a> 行定义.</p>

</div>
</div>
<a id="a2a12b9ef4412b9abb4848f65ffa2850e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a12b9ef4412b9abb4848f65ffa2850e">&#9670;&nbsp;</a></span>CreateDirectory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::CreateDirectory </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szPathName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建目录 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">szPathName</td><td>目录名称路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回TRUE，失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00497">497</a> 行定义.</p>

</div>
</div>
<a id="a7b6335c0eefe4ed1f01963638bc708b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b6335c0eefe4ed1f01963638bc708b8">&#9670;&nbsp;</a></span>CreateEvent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> ShareApi::CreateEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td>
          <td class="paramname"><em>bEvent</em> = <code><a class="el" href="tools_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td>
          <td class="paramname"><em>bAuto</em> = <code><a class="el" href="tools_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bEvent</td><td>初始时是否有信号 </td></tr>
    <tr><td class="paramname">bAuto</td><td>是否自动重置事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回事件句柄,失败返回NULL </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01257">1257</a> 行定义.</p>

</div>
</div>
<a id="a1a12fe17284d65b76175e2ea80279f9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a12fe17284d65b76175e2ea80279f9e">&#9670;&nbsp;</a></span>CreateMutex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> ShareApi::CreateMutex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建锁 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01210">1210</a> 行定义.</p>

</div>
</div>
<a id="af5477174100c9b0c5fa9b8a1787c09af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5477174100c9b0c5fa9b8a1787c09af">&#9670;&nbsp;</a></span>FilePathExists()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::FilePathExists </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szFileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查文件是否存在 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">szFileName</td><td>需要检查的文件名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回TRUE，失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00474">474</a> 行定义.</p>

</div>
</div>
<a id="a753dde889b11d29612c759d13ee359b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a753dde889b11d29612c759d13ee359b3">&#9670;&nbsp;</a></span>FindClose()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::FindClose </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭目录遍历 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00431">431</a> 行定义.</p>

</div>
</div>
<a id="a714ae756abbd2497307c649f6e9259c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a714ae756abbd2497307c649f6e9259c2">&#9670;&nbsp;</a></span>FindFirstFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> ShareApi::FindFirstFile </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szDir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a67369fb17cf5023754a0db996c81a6af">PFILEFINDINFO</a>&#160;</td>
          <td class="paramname"><em>pInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>文件遍历，win32中不用主动加上*. </p>
<p>*,文件分割统一用'/' </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">szDir</td><td>目录路径 </td></tr>
    <tr><td class="paramname">pInfo</td><td>文件信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>函数失败返回NULL，成功返回一个有效的句柄 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>此函数不支持通配符查找，szDir必须是一个目录 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00290">290</a> 行定义.</p>

</div>
</div>
<a id="ac4bb4bd0533fccd041039f9c51f1242d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4bb4bd0533fccd041039f9c51f1242d">&#9670;&nbsp;</a></span>FindNextFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::FindNextFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a67369fb17cf5023754a0db996c81a6af">PFILEFINDINFO</a>&#160;</td>
          <td class="paramname"><em>pInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>继续遍历目录 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hFile</td><td>FindFirstFile返回的句柄 </td></tr>
    <tr><td class="paramname">pInfo</td><td>接受的数据信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果存在文件或目录则返回TRUE，不存在或函数失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00374">374</a> 行定义.</p>

</div>
</div>
<a id="ac170c14f06c9eaa6710df7726e475908"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac170c14f06c9eaa6710df7726e475908">&#9670;&nbsp;</a></span>ftoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::ftoa </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>dotcount</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00868">868</a> 行定义.</p>

</div>
</div>
<a id="aafc83846014294f90fd16a5649dfd550"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafc83846014294f90fd16a5649dfd550">&#9670;&nbsp;</a></span>GbkToUnicode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::GbkToUnicode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>srcLen</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00640">640</a> 行定义.</p>

</div>
</div>
<a id="a9d058caff66f8dd3726492a2ef6fc15f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d058caff66f8dd3726492a2ef6fc15f">&#9670;&nbsp;</a></span>GbkToUtf8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::GbkToUtf8 </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>srcLen</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00558">558</a> 行定义.</p>

</div>
</div>
<a id="a4e74675c3ae4e3233eeeb2088057aca8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e74675c3ae4e3233eeeb2088057aca8">&#9670;&nbsp;</a></span>GetCurrentDirectory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::GetCurrentDirectory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szPath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前进程目录 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>缓存大小 </td></tr>
    <tr><td class="paramname">szPath</td><td>接收路径的缓存 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回TRUE，失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00485">485</a> 行定义.</p>

</div>
</div>
<a id="a5f2e8e67d4a3a8d061bd8f109762a48d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f2e8e67d4a3a8d061bd8f109762a48d">&#9670;&nbsp;</a></span>GetCurrentProcessId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a> ShareApi::GetCurrentProcessId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前进程的ID </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01172">1172</a> 行定义.</p>

</div>
</div>
<a id="aa247d107f7e439e2c6871dfba195a022"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa247d107f7e439e2c6871dfba195a022">&#9670;&nbsp;</a></span>GetCurrentThreadId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a> ShareApi::GetCurrentThreadId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前线程ID </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01163">1163</a> 行定义.</p>

</div>
</div>
<a id="acd17304851a877042934e8967d7ac27e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd17304851a877042934e8967d7ac27e">&#9670;&nbsp;</a></span>GetFilePointer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ShareApi::GetFilePointer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>参考GetFilePointerEx的函数说明 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00214">214</a> 行定义.</p>

</div>
</div>
<a id="a12d3c7f822d56a7161601bfde8cd2791"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12d3c7f822d56a7161601bfde8cd2791">&#9670;&nbsp;</a></span>GetFilePointerEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> ShareApi::GetFilePointerEx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回当前文件指针位置 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00202">202</a> 行定义.</p>

</div>
</div>
<a id="a8723a4c07d1482980a46b2f650bd2e5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8723a4c07d1482980a46b2f650bd2e5e">&#9670;&nbsp;</a></span>GetFileSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ShareApi::GetFileSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>参考GetFileSizeEx的说明 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00159">159</a> 行定义.</p>

</div>
</div>
<a id="a5853aba96a6eaed3b9dd1a66805f6070"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5853aba96a6eaed3b9dd1a66805f6070">&#9670;&nbsp;</a></span>GetFileSizeEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> ShareApi::GetFileSizeEx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hFile</td><td>文件句柄指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回文件大小，失败返回-1 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00146">146</a> 行定义.</p>

</div>
</div>
<a id="af058258537f5205e21395182fcc04208"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af058258537f5205e21395182fcc04208">&#9670;&nbsp;</a></span>GetLastError()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ShareApi::GetLastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回上一次函数的错误值 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00049">49</a> 行定义.</p>

</div>
</div>
<a id="a0a37d9b5c4fe9f8f5611369885097b67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a37d9b5c4fe9f8f5611369885097b67">&#9670;&nbsp;</a></span>GetTickCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ShareApi::GetTickCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01839">1839</a> 行定义.</p>

</div>
</div>
<a id="a608cadd04e1c250b35997658e0390cc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a608cadd04e1c250b35997658e0390cc7">&#9670;&nbsp;</a></span>GetTickCount64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#adbfeae90dcbc6d1e23fc52bb64339f46">DWORD64</a> ShareApi::GetTickCount64 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01828">1828</a> 行定义.</p>

</div>
</div>
<a id="a79243d634ddf21dd7486ceb02e80e360"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79243d634ddf21dd7486ceb02e80e360">&#9670;&nbsp;</a></span>Global_FreeMem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::Global_FreeMem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>sInfo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>释放由Global_GetLastErrr函数申请的内存 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00542">542</a> 行定义.</p>

</div>
</div>
<a id="a58553d013a36ffb0eb150b0eec157c63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58553d013a36ffb0eb150b0eec157c63">&#9670;&nbsp;</a></span>Global_GetLastError()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> * ShareApi::Global_GetLastError </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> *&#160;</td>
          <td class="paramname"><em>pError</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取错误信息 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pError</td><td>如果为NULL则会调用GetLastError或errno两个函数，如果不为NULL则使用pError指向的值进行格式化错误信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回错误信息，失败返回NULL </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>接受的返回值为堆空间内存，需要使用Global_FreeMem进行释放 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00508">508</a> 行定义.</p>

</div>
</div>
<a id="a4535893b4a84f7446af7f907e843f504"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4535893b4a84f7446af7f907e843f504">&#9670;&nbsp;</a></span>InterlockedDecrement() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ShareApi::InterlockedDecrement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *&#160;</td>
          <td class="paramname"><em>Addend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01806">1806</a> 行定义.</p>

</div>
</div>
<a id="a1cf67c0b1b748d5d51ec8dbd0f7aaae4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cf67c0b1b748d5d51ec8dbd0f7aaae4">&#9670;&nbsp;</a></span>InterlockedDecrement() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long ShareApi::InterlockedDecrement </td>
          <td>(</td>
          <td class="paramtype">long *&#160;</td>
          <td class="paramname"><em>Addend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01801">1801</a> 行定义.</p>

</div>
</div>
<a id="a647b7c405fa0d8d21c4d1da509fc58ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a647b7c405fa0d8d21c4d1da509fc58ec">&#9670;&nbsp;</a></span>InterlockedDecrement64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> ShareApi::InterlockedDecrement64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *&#160;</td>
          <td class="paramname"><em>Addend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01796">1796</a> 行定义.</p>

</div>
</div>
<a id="a74971aa7355ca77722a8e6ca66ae3841"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74971aa7355ca77722a8e6ca66ae3841">&#9670;&nbsp;</a></span>InterlockedExchange() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ShareApi::InterlockedExchange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *&#160;</td>
          <td class="paramname"><em>Addend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01763">1763</a> 行定义.</p>

</div>
</div>
<a id="aa020decf062bbd8dc399dd69c67a1d5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa020decf062bbd8dc399dd69c67a1d5b">&#9670;&nbsp;</a></span>InterlockedExchange() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long ShareApi::InterlockedExchange </td>
          <td>(</td>
          <td class="paramtype">long *&#160;</td>
          <td class="paramname"><em>Addend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01754">1754</a> 行定义.</p>

</div>
</div>
<a id="a949e52140a840041bc8d2353327f576a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a949e52140a840041bc8d2353327f576a">&#9670;&nbsp;</a></span>InterlockedExchange64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> ShareApi::InterlockedExchange64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *&#160;</td>
          <td class="paramname"><em>Addend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01772">1772</a> 行定义.</p>

</div>
</div>
<a id="afa333977e77d5aa53d011ffd2531f8fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa333977e77d5aa53d011ffd2531f8fc">&#9670;&nbsp;</a></span>InterlockedExchangeAdd() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ShareApi::InterlockedExchangeAdd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *&#160;</td>
          <td class="paramname"><em>Addend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>Value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01736">1736</a> 行定义.</p>

</div>
</div>
<a id="a83771e6812aba75449e79e18b9220041"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83771e6812aba75449e79e18b9220041">&#9670;&nbsp;</a></span>InterlockedExchangeAdd() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long ShareApi::InterlockedExchangeAdd </td>
          <td>(</td>
          <td class="paramtype">long *&#160;</td>
          <td class="paramname"><em>Addend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>Value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01727">1727</a> 行定义.</p>

</div>
</div>
<a id="a510d88717f432bba3b53a87989044492"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a510d88717f432bba3b53a87989044492">&#9670;&nbsp;</a></span>InterlockedExchangeAdd64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> ShareApi::InterlockedExchangeAdd64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *&#160;</td>
          <td class="paramname"><em>Addend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td>
          <td class="paramname"><em>Value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01745">1745</a> 行定义.</p>

</div>
</div>
<a id="a3481ddc224ec35e1779ad5462cf8f29a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3481ddc224ec35e1779ad5462cf8f29a">&#9670;&nbsp;</a></span>InterlockedIncrement() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ShareApi::InterlockedIncrement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> *&#160;</td>
          <td class="paramname"><em>Addend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01791">1791</a> 行定义.</p>

</div>
</div>
<a id="aae939585936b972d0fba0a064278f6dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae939585936b972d0fba0a064278f6dd">&#9670;&nbsp;</a></span>InterlockedIncrement() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long ShareApi::InterlockedIncrement </td>
          <td>(</td>
          <td class="paramtype">long *&#160;</td>
          <td class="paramname"><em>Addend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01786">1786</a> 行定义.</p>

</div>
</div>
<a id="a3d320458a805a39a1abc145d7aa28fb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d320458a805a39a1abc145d7aa28fb6">&#9670;&nbsp;</a></span>InterlockedIncrement64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> ShareApi::InterlockedIncrement64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> *&#160;</td>
          <td class="paramname"><em>Addend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01781">1781</a> 行定义.</p>

</div>
</div>
<a id="a33259cc2e33070f75643c9836fa6befa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33259cc2e33070f75643c9836fa6befa">&#9670;&nbsp;</a></span>IsDirent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::IsDirent </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szDir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查目录是否存在 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">szDir</td><td>目录字符串名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>存在返回TRUE，失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00460">460</a> 行定义.</p>

</div>
</div>
<a id="afe403ffbb6f46bfd43aa404c5b462e7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe403ffbb6f46bfd43aa404c5b462e7f">&#9670;&nbsp;</a></span>itoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::itoa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00845">845</a> 行定义.</p>

</div>
</div>
<a id="aceaa3079fafcc01a4e994851d7b19b18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceaa3079fafcc01a4e994851d7b19b18">&#9670;&nbsp;</a></span>lftoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::lftoa </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>dotcount</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00946">946</a> 行定义.</p>

</div>
</div>
<a id="aad0f12d8a89ce1a3ac07b25be7d4dca8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad0f12d8a89ce1a3ac07b25be7d4dca8">&#9670;&nbsp;</a></span>llftoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::llftoa </td>
          <td>(</td>
          <td class="paramtype">long double&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>dotcount</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00951">951</a> 行定义.</p>

</div>
</div>
<a id="a042cb4f7a8ef64c76911a3c95caf3bb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a042cb4f7a8ef64c76911a3c95caf3bb1">&#9670;&nbsp;</a></span>lltoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::lltoa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00814">814</a> 行定义.</p>

</div>
</div>
<a id="a4b416e5e159ac50d2c18a1f77a0ea734"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b416e5e159ac50d2c18a1f77a0ea734">&#9670;&nbsp;</a></span>LoadDll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">HANDLE</a> ShareApi::LoadDll </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>dllName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>动态载入dll/so库函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dllName</td><td>动态库文件路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回文件句柄，失败返回NULL </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l02146">2146</a> 行定义.</p>

</div>
</div>
<a id="a65d31568eb4e185474be493a8a9ec749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65d31568eb4e185474be493a8a9ec749">&#9670;&nbsp;</a></span>LoadSymbol()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * ShareApi::LoadSymbol </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">HANDLE</a>&#160;</td>
          <td class="paramname"><em>dlHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>symbol</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>载入动态库中的导出符号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dlHandle</td><td>打开的动态库句柄 </td></tr>
    <tr><td class="paramname">symbol</td><td>符号名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回导出的符号地址指针 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l02162">2162</a> 行定义.</p>

</div>
</div>
<a id="a95bbd5d2f49d29511d8a53e60339ff08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95bbd5d2f49d29511d8a53e60339ff08">&#9670;&nbsp;</a></span>ltoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::ltoa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#acbf03b87f07f587a6e72384c9141182a">long_t</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00832">832</a> 行定义.</p>

</div>
</div>
<a id="a87b8d6d01e677432b988eef8ce62c3fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87b8d6d01e677432b988eef8ce62c3fb">&#9670;&nbsp;</a></span>MutexLock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::MutexLock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hMutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加锁 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01229">1229</a> 行定义.</p>

</div>
</div>
<a id="ae5ba1f54275e01ae695344690c8e5f40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5ba1f54275e01ae695344690c8e5f40">&#9670;&nbsp;</a></span>MutexUnlock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::MutexUnlock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hMutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解锁 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01238">1238</a> 行定义.</p>

</div>
</div>
<a id="ae618bc7d8ba275d84cb5b7b984d41613"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae618bc7d8ba275d84cb5b7b984d41613">&#9670;&nbsp;</a></span>NotifyAllCondVariable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::NotifyAllCondVariable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hCond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>唤醒所有线程上的等待的条件变量 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hCond</td><td>条件变量句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作成功返回TRUE，失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01651">1651</a> 行定义.</p>

</div>
</div>
<a id="a33be1b774a30a60e8f134e9a54e754f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33be1b774a30a60e8f134e9a54e754f0">&#9670;&nbsp;</a></span>NotifyCondVariable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::NotifyCondVariable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hCond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>唤醒单个线程上的等待的条件变量 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hCond</td><td>条件变量句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作成功返回TRUE，失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01668">1668</a> 行定义.</p>

</div>
</div>
<a id="a8d8eb33de0a336b6c099d4196e75fbc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d8eb33de0a336b6c099d4196e75fbc6">&#9670;&nbsp;</a></span>OpenFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a> ShareApi::OpenFile </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>iMode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>打开文件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">szFileName</td><td>文件名称 </td></tr>
    <tr><td class="paramname">iMode</td><td>打开模式:查看tools.h头文件中定义的宏 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回文件句柄，失败返回NULL </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00084">84</a> 行定义.</p>

</div>
</div>
<a id="ae93328641ac50ed7196d704ff24b3dc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae93328641ac50ed7196d704ff24b3dc2">&#9670;&nbsp;</a></span>PathAppend()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::PathAppend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>srcdir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>subdir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加目录的子目录名称 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">srcdir</td><td>源目录 </td></tr>
    <tr><td class="paramname">subdir</td><td>子目录 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>目录分隔符统一用'/'表示,字符串传长度如果超过MAX_PATH则添加失败 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00446">446</a> 行定义.</p>

</div>
</div>
<a id="a6fd951b223aa9382df1d9820bb04072e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fd951b223aa9382df1d9820bb04072e">&#9670;&nbsp;</a></span>PrintDumpInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::PrintDumpInfo </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>bPrintConsole</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>打印异常后函数调用堆栈信息 </p>
<dl class="section remark"><dt>备注</dt><dd>该函数在Windows下还会输出dump文件； linux生成core信息依赖命令ulimit-c unlimited故生成的core功能不再本函数之列； 该函数需要在进程启动时便调用。 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l02055">2055</a> 行定义.</p>

</div>
</div>
<a id="a52ea835c01d56aaf225ab37baacf7dd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52ea835c01d56aaf225ab37baacf7dd6">&#9670;&nbsp;</a></span>QueryPerformanceCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::QueryPerformanceCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a1638d44e4150a318c2791b2f719787aa">LARGE_INTEGER</a> *&#160;</td>
          <td class="paramname"><em>lpPerformanceCount</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取CPU的执行时间 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01860">1860</a> 行定义.</p>

</div>
</div>
<a id="aa3a32d171616bf6ce986acb93ce88d30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3a32d171616bf6ce986acb93ce88d30">&#9670;&nbsp;</a></span>QueryPerformanceFrequency()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::QueryPerformanceFrequency </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a1638d44e4150a318c2791b2f719787aa">LARGE_INTEGER</a> *&#160;</td>
          <td class="paramname"><em>lpFrequency</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取cup时间频率函数(linux下该函数无效) </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01850">1850</a> 行定义.</p>

</div>
</div>
<a id="a4b481d0807997fab0917801a3203aad7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b481d0807997fab0917801a3203aad7">&#9670;&nbsp;</a></span>ReadFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> ShareApi::ReadFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a>&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读取文件数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hFile</td><td>文件句柄 </td></tr>
    <tr><td class="paramname">buf</td><td>数据缓冲区 </td></tr>
    <tr><td class="paramname">size</td><td>需要读取的大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>函数失败返回负值，成功返回&gt;=0的值 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00236">236</a> 行定义.</p>

</div>
</div>
<a id="aef9c08d248e17a517235723ef2db9663"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef9c08d248e17a517235723ef2db9663">&#9670;&nbsp;</a></span>SetEvent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::SetEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td>
          <td class="paramname"><em>bEvent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置句柄是否有事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hEvent</td><td>时间句柄 </td></tr>
    <tr><td class="paramname">bEvent</td><td>有事件则为TRUE,反之则为FALSE </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回TRUE,失败返回FALSE </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01291">1291</a> 行定义.</p>

</div>
</div>
<a id="a35bc338ea514bb9d9f3de57730db5d60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35bc338ea514bb9d9f3de57730db5d60">&#9670;&nbsp;</a></span>SetFilePointer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::SetFilePointer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>dwOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>iWhence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>参考SetFilePointerEx的函数说明 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00188">188</a> 行定义.</p>

</div>
</div>
<a id="a52ea018b9be6f951d2bdce36cc0eae15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52ea018b9be6f951d2bdce36cc0eae15">&#9670;&nbsp;</a></span>SetFilePointerEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::SetFilePointerEx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td>
          <td class="paramname"><em>dwOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>iWhence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>定位文件指针 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hFile</td><td>文件句柄 </td></tr>
    <tr><td class="paramname">dwOffset</td><td>偏移量 </td></tr>
    <tr><td class="paramname">iWhence</td><td>定位的相对位置；FILE_SEEK_CUR(当前位置)，FILE_SEEK_SET（文件开头），FILE_SEEK_END（文件末尾） </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>函数失败返回-1值，成功返回&gt;=0的值 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00174">174</a> 行定义.</p>

</div>
</div>
<a id="a169d4ee242a5f842c91da9be8a179e18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a169d4ee242a5f842c91da9be8a179e18">&#9670;&nbsp;</a></span>Sleep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ShareApi::Sleep </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwSleep</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>线程休眠函数,单位毫秒(ms) </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01817">1817</a> 行定义.</p>

</div>
</div>
<a id="afc7a41f951383d91baa664bae54c03a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc7a41f951383d91baa664bae54c03a3">&#9670;&nbsp;</a></span>StartProcess()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::StartProcess </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>exename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> **&#160;</td>
          <td class="paramname"><em>argv</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> **&#160;</td>
          <td class="paramname"><em>evp</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>开始一个新进程 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">exename</td><td>进程镜像文件路径 </td></tr>
    <tr><td class="paramname">argv</td><td>进程启动参数（以NULL结尾） </td></tr>
    <tr><td class="paramname">evp</td><td>进程环境块（以NULL结尾） </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回TRUE，失败返回FALSE </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>默认传入父进程参数和环境变量 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l02073">2073</a> 行定义.</p>

</div>
</div>
<a id="a42cc4f5c3ce6a37fa32f97be13c5d300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42cc4f5c3ce6a37fa32f97be13c5d300">&#9670;&nbsp;</a></span>strnicmp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::strnicmp </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>忽略大小写比较两个字符串,最多比较count个字符 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str1</td><td>字符串1 </td></tr>
    <tr><td class="paramname">str2</td><td>字符串2 </td></tr>
    <tr><td class="paramname">count</td><td>比较的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>相等返回0;str1大于str2返回1;str1小于str2则返回2 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>该函数是安全的,遇到结束符时则会停止比较 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01029">1029</a> 行定义.</p>

</div>
</div>
<a id="ac7a2d28aa9970323f90bf16ad0e039ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7a2d28aa9970323f90bf16ad0e039ac">&#9670;&nbsp;</a></span>Thread_Join()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::Thread_Join </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">THREADPTR</a>&#160;</td>
          <td class="paramname"><em>thHandle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等待线程结束 </p>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01190">1190</a> 行定义.</p>

</div>
</div>
<a id="ab284a7efaf7111e839b66df283157fea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab284a7efaf7111e839b66df283157fea">&#9670;&nbsp;</a></span>ultoa()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::ultoa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>szValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00823">823</a> 行定义.</p>

</div>
</div>
<a id="a1feb20a6d3425c35c0022f486d106759"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1feb20a6d3425c35c0022f486d106759">&#9670;&nbsp;</a></span>UnicodeToGbk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::UnicodeToGbk </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>srcLen</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00746">746</a> 行定义.</p>

</div>
</div>
<a id="ae6dfe98d6e51d6c8a3a612de99f840b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6dfe98d6e51d6c8a3a612de99f840b2">&#9670;&nbsp;</a></span>UnicodeToUtf8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::UnicodeToUtf8 </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>srcLen</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00784">784</a> 行定义.</p>

</div>
</div>
<a id="a4d8aa14a00b0d34d476dece859c6203b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d8aa14a00b0d34d476dece859c6203b">&#9670;&nbsp;</a></span>UTF8_CPY_AS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::UTF8_CPY_AS </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00592">592</a> 行定义.</p>

</div>
</div>
<a id="aaf65e2886782dff810bc58f68d3ceab4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf65e2886782dff810bc58f68d3ceab4">&#9670;&nbsp;</a></span>UTF8_CPY_WS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::UTF8_CPY_WS </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00686">686</a> 行定义.</p>

</div>
</div>
<a id="adda5f5c83e04637a92905f9f4164f075"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adda5f5c83e04637a92905f9f4164f075">&#9670;&nbsp;</a></span>Utf8ToGbk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::Utf8ToGbk </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>srcLen</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00599">599</a> 行定义.</p>

</div>
</div>
<a id="a1ed844c1fb6e16ef713828402c8200a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ed844c1fb6e16ef713828402c8200a2">&#9670;&nbsp;</a></span>Utf8ToUnicode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ShareApi::Utf8ToUnicode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>srcLen</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00693">693</a> 行定义.</p>

</div>
</div>
<a id="ab91c15d44323d61c48b1afd434da6a33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab91c15d44323d61c48b1afd434da6a33">&#9670;&nbsp;</a></span>WaitConditionVariable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ShareApi::WaitConditionVariable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hCond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hMutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwWaitOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等待条件变量 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hCond</td><td>创建的信号句柄指针 </td></tr>
    <tr><td class="paramname">hMutex</td><td>传入的锁句柄 </td></tr>
    <tr><td class="paramname">dwWaitOut</td><td>超时时间，单位毫秒,设置为INFINITE则一直等待下去 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回等待后的状态值: WAIT_OBJECT_0 等待成功 WAIT_TIMEOUT 超时 WAIT_FAILED 发生错误 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01606">1606</a> 行定义.</p>

</div>
</div>
<a id="a13aef8d6aaac3071ccedf693c7d03f27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13aef8d6aaac3071ccedf693c7d03f27">&#9670;&nbsp;</a></span>WaitForMultipleEvents()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ShareApi::WaitForMultipleEvents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> *&#160;</td>
          <td class="paramname"><em>hEvents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>nEventCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>&#160;</td>
          <td class="paramname"><em>bWaitAll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwWaitOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等待多个事件对象有信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hEvents</td><td>使用CreateEvent函数返回的事件对象句柄 </td></tr>
    <tr><td class="paramname">nEventCount</td><td>事件句柄数量，最大MAXIMUM_WAIT_OBJECTS（64）个 </td></tr>
    <tr><td class="paramname">bWaitAll</td><td>是否设置等待所有的事件对象有信号时才返回，如果为FALSE，则其中某个事件对象有信号时函数就会返回 </td></tr>
    <tr><td class="paramname">dwWaitOut</td><td>超时时间，单位毫秒,设置为INFINITE则一直等待下去 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回等待后的状态值 WAIT_OBJECT_0 + （有信号的事件句柄下标） 等待成功 WAIT_TIMEOUT 超时 WAIT_FAILED 发生错误 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01439">1439</a> 行定义.</p>

</div>
</div>
<a id="a13ed8016535f6825c83eedef069ebe41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13ed8016535f6825c83eedef069ebe41">&#9670;&nbsp;</a></span>WaitForSingleEvent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ShareApi::WaitForSingleEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td>
          <td class="paramname"><em>hEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwWaitOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等待事件对象有信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hEvent</td><td>使用CreateEvent函数返回的事件对象句柄 </td></tr>
    <tr><td class="paramname">dwWaitOut</td><td>超时时间，单位毫秒,设置为INFINITE则一直等待下去 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回等待后的状态值 WAIT_OBJECT_0 等待成功 WAIT_TIMEOUT 超时 WAIT_FAILED 发生错误 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l01319">1319</a> 行定义.</p>

</div>
</div>
<a id="ad1a8ec9389fc2b1cbf9b7a2a10a054bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1a8ec9389fc2b1cbf9b7a2a10a054bd">&#9670;&nbsp;</a></span>WriteFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a> ShareApi::WriteFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">FILE_HANDLE</a>&#160;</td>
          <td class="paramname"><em>hFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a>&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向文件中写入数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hFile</td><td>文件句柄 </td></tr>
    <tr><td class="paramname">buf</td><td>数据缓冲区 </td></tr>
    <tr><td class="paramname">size</td><td>需要写入的大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>函数失败返回-1值，成功返回&gt;=0的值 </dd></dl>

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00251">251</a> 行定义.</p>

</div>
</div>
<a id="a35355024be699fab00fff43941b41914"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35355024be699fab00fff43941b41914">&#9670;&nbsp;</a></span>WS_CPY_AS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::WS_CPY_AS </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00739">739</a> 行定义.</p>

</div>
</div>
<a id="a431b116518daffebc87c866b65aacfa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a431b116518daffebc87c866b65aacfa2">&#9670;&nbsp;</a></span>WS_CPY_UTF8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a> ShareApi::WS_CPY_UTF8 </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>des</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_share_api_8cpp_source.html">ShareApi.cpp</a> 第 <a class="el" href="_share_api_8cpp_source.html#l00777">777</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
